package com.company.cloud.goodsrestservice.model;

import javax.persistence.*;

@Table(name = "goods_common")
public class Goods {
    /**
     * 商品ID
     */
    @Id
    @Column(name = "goods_id")
    private Integer goodsId;

    /**
     * 商品品牌ID
     */
    @Column(name = "brand_id")
    private Integer brandId;

    /**
     * 商品货号
     */
    @Column(name = "goods_number")
    private String goodsNumber;

    /**
     * 折扣率
     */
    @Column(name = "goods_discount_rate")
    private Float goodsDiscountRate;

    /**
     * 供应商
     */
    @Column(name = "supplier_id")
    private Integer supplierId;

    /**
     * 类别
     */
    @Column(name = "category_id")
    private Integer categoryId;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Long updateTime;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Long createTime;

    /**
     * 官方价
     */
    @Column(name = "price_offical")
    private Float priceOffical;

    /**
     * 欧洲官方价
     */
    @Column(name = "price_offical_eu")
    private Float priceOfficalEu;

    /**
     * 供货价
     */
    @Column(name = "price_supply")
    private Float priceSupply;

    /**
     * 京东价格
     */
    @Column(name = "price_jd")
    private Float priceJd;

    /**
     * 商品名
     */
    @Column(name = "goods_name")
    private String goodsName;

    /**
     * 获取商品ID
     *
     * @return goods_id - 商品ID
     */
    public Integer getGoodsId() {
        return goodsId;
    }

    /**
     * 设置商品ID
     *
     * @param goodsId 商品ID
     */
    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    /**
     * 获取商品品牌ID
     *
     * @return brand_id - 商品品牌ID
     */
    public Integer getBrandId() {
        return brandId;
    }

    /**
     * 设置商品品牌ID
     *
     * @param brandId 商品品牌ID
     */
    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    /**
     * 获取商品货号
     *
     * @return goods_number - 商品货号
     */
    public String getGoodsNumber() {
        return goodsNumber;
    }

    /**
     * 设置商品货号
     *
     * @param goodsNumber 商品货号
     */
    public void setGoodsNumber(String goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    /**
     * 获取折扣率
     *
     * @return goods_discount_rate - 折扣率
     */
    public Float getGoodsDiscountRate() {
        return goodsDiscountRate;
    }

    /**
     * 设置折扣率
     *
     * @param goodsDiscountRate 折扣率
     */
    public void setGoodsDiscountRate(Float goodsDiscountRate) {
        this.goodsDiscountRate = goodsDiscountRate;
    }

    /**
     * 获取供应商
     *
     * @return supplier_id - 供应商
     */
    public Integer getSupplierId() {
        return supplierId;
    }

    /**
     * 设置供应商
     *
     * @param supplierId 供应商
     */
    public void setSupplierId(Integer supplierId) {
        this.supplierId = supplierId;
    }

    /**
     * 获取类别
     *
     * @return category_id - 类别
     */
    public Integer getCategoryId() {
        return categoryId;
    }

    /**
     * 设置类别
     *
     * @param categoryId 类别
     */
    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * 获取更新时间
     *
     * @return update_time - 更新时间
     */
    public Long getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置更新时间
     *
     * @param updateTime 更新时间
     */
    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public Long getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取官方价
     *
     * @return price_offical - 官方价
     */
    public Float getPriceOffical() {
        return priceOffical;
    }

    /**
     * 设置官方价
     *
     * @param priceOffical 官方价
     */
    public void setPriceOffical(Float priceOffical) {
        this.priceOffical = priceOffical;
    }

    /**
     * 获取欧洲官方价
     *
     * @return price_offical_eu - 欧洲官方价
     */
    public Float getPriceOfficalEu() {
        return priceOfficalEu;
    }

    /**
     * 设置欧洲官方价
     *
     * @param priceOfficalEu 欧洲官方价
     */
    public void setPriceOfficalEu(Float priceOfficalEu) {
        this.priceOfficalEu = priceOfficalEu;
    }

    /**
     * 获取供货价
     *
     * @return price_supply - 供货价
     */
    public Float getPriceSupply() {
        return priceSupply;
    }

    /**
     * 设置供货价
     *
     * @param priceSupply 供货价
     */
    public void setPriceSupply(Float priceSupply) {
        this.priceSupply = priceSupply;
    }

    /**
     * 获取京东价格
     *
     * @return price_jd - 京东价格
     */
    public Float getPriceJd() {
        return priceJd;
    }

    /**
     * 设置京东价格
     *
     * @param priceJd 京东价格
     */
    public void setPriceJd(Float priceJd) {
        this.priceJd = priceJd;
    }

    /**
     * 获取商品名
     *
     * @return goods_name - 商品名
     */
    public String getGoodsName() {
        return goodsName;
    }

    /**
     * 设置商品名
     *
     * @param goodsName 商品名
     */
    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }
}